package top.huhuiyu.springboot3.p2301.entity.api;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class NewsListResult implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private Integer code;
    private String msg;
    private List<NewsListResultData> data;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class NewsListResultData implements Serializable {
        @Serial
        private static final long serialVersionUID = 1L;
        private String title;
        private List<String> imgList;
        private String source;
        private String newsId;
        private String digest;
        private String postTime;
    }
}
